package com.gm.wholesale.module.unit.bean;

import com.gm.commonlib.views.choiceview.CustomItemChoosenEntity;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class UnitBean implements Serializable , CustomItemChoosenEntity {

    @SerializedName("id")
    private long id;
    @SerializedName("name")
    private String name;
    @SerializedName("version")
    private int version;
    @SerializedName("type")
    private int type;

    private String proportionNum;

    public String getProportionNum() {
        return proportionNum;
    }

    public void setProportionNum(String proportionNum) {
        this.proportionNum = proportionNum;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    private String goodName;

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    private long goodId;

    public long getGoodId() {
        return goodId;
    }

    public void setGoodId(long goodId) {
        this.goodId = goodId;
    }

    private String price;

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Override
    public String getText() {
        return getName();
    }
}
